$(document).ready(function(){
    var $token = window.localStorage.getItem("token");
    var $mid= window.localStorage.getItem("mid");
    var $groupid= window.localStorage.getItem("groupId");
    var Post ="mid="+$mid+"&groupid="+$groupid+"&pagesize=10&token="+$token+"&did=66666";
	$.ajax({
		url:'../../api/group/getallgroupinfolist',
		type:'post',
		data:Post,
		success:function(msg){
			if(msg.code ==100){
				console.log(msg);
				var $optionalBusi=document.getElementById("optionalBusi");
				for(var i=0;i<msg.data.length;i++){
					$li=document.createElement("li");
					$li.innerHTML='<a>'+msg.data[i].n2+'</a>';
					$optionalBusi.appendChild($li);
				}
			};
		},
	});
});
	
